package springlearn;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import basicgrammer.AnnotationTest.MyTest;
import basicgrammer.AnnotationTest.MyTest3;
import basicgrammer.AnnotationTest.MyTest4;

@Service
public class TestObject {
	@Resource(name = "testVOAndFunc")
	private TestVOAndFunc testVOAndFunc;
	@Resource(name = "obj1")
	private obj1 obj1;
	
	public void showInfo(){
		testVOAndFunc.TestInfo();
		obj1.test();
	}
	@MyTest(id = 2,name = "lily")	
	public static void Test(int ...m){
		for(int i = 0;i<m.length;i++){
			System.out.println(m[i]);
		}
	}
	@MyTest(id = 3)
	public void test2(){
		
	}
	
	public void test3(@MyTest3 int b){
		
	}
	@MyTest4(id = 1)
	public int test;
}
